import service from "@/utils/fetch";
const post = {
  //查询图库分类
  tenantImagesClassifyList(params) {
    return service({
      method: "get",
      params,
      url: "/api/tenantImagesClassify/",
    });
  },
  // 添加图库分类
  tenantImagesClassifyAdd(params) {
    return service({
      method: "post",
      url: "/api/tenantImagesClassify/",
      data: params,
    });
  },
  // 修改图库分类
  tenantImagesClassifyUpdate(params) {
    return service({
      method: "put",
      url: "/api/tenantImagesClassify/",
      data: params,
    });
  },
  // 删除图库分类
  tenantImagesClassifyDelete(ids) {
    return service({
      method: "delete",
      data: ids,
      url: `/api/tenantImagesClassify/`,
    });
  },

  // 新增图库
  addTenantImages(params) {
    return service({
      method: "post",
      data: params,
      url: `/api/tenantImages/`,
    });
  },

  // 修改图库
  updateTenantImages(params) {
    return service({
      method: "put",
      data: params,
      url: `/api/tenantImages/`,
    });
  },

  // 删除图库
  deleteTenantImages(ids) {
    return service({
      method: "delete",
      data: ids,
      url: `/api/tenantImages/`,
    });
  },

  // 查询图库
  getTenantImages(params) {
    return service({
      method: "get",
      params,
      url: `/api/tenantImages/`,
    });
  },
};

export default post;
